
const { mainWinConst } = require('../constans/mainWinConstans')


exports.setHeighByRow = function (mainWindow, row) {
    if (row == 0) {
        row = 1
    } else if (row > 10) {
        row = 10
    }
    const width = mainWindow.getBounds().width
    const height = row * mainWinConst.baseHeight
    mainWindow.setSize(width, height)
}